package view.viewComponents 
{
	import controller.EventBus;
	import controller.NPCModelEvent;
	import model.data.NPCTypes;
	import org.flixel.FlxSprite;
	
	/**
	 * ...
	 * @author Gaz Williams
	 * 
	 * npc's do very little, they are just really there to provide collisions, which are then mediated to the
	 * model via the view controller
	 * 
	 */
	public class NPC extends FlxSprite 
	{
		
		private var _type:NPCTypes;
		public function get type():NPCTypes 
		{
			return _type;
		}
		
		private var _column:int;
		public function get column():int 
		{
			return _column;
		}
		public function set column(value:int):void 
		{
			_column = value;
			this.x = _column * tilesize;
		}
		
		private var _row:int;
		public function get row():int 
		{
			return _row;
		}
		public function set row(value:int):void 
		{
			_row = value;
			this.y = _row * tilesize;
		}
		
		private var tilesize:uint;
		
		public function NPC(type:NPCTypes, tilesize:uint, X:Number=0, Y:Number=0) 
		{
			_type = type;
			this.tilesize = tilesize;
			
			super(X, Y, null);	
		}
		
		
		
	}

}